package com.chinasofti.arrlist;

import java.util.ArrayList;
import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        ArrayList<String> arr = new ArrayList<>();
        arr.add("hello");
        arr.add("world");
        arr.add("java");
        for (int i = 0; i <arr.size() ; i++) {
            System.out.println(arr.get(i));
        }



    }

}
